<?php
class ConfigIncludesSites extends AppModel
{
  var $name = 'ConfigIncludesSites';
  var $useTable = "config_includes_sites";
  var $id = "cis_id";
  var $primaryKey = "cis_id";

	function getFieldValue($field, $key, $key_value)
	{
		$rows = $this->field($field, array("$key" => "$key_value"));
		return $rows;
  }

  function getFieldsValue($whereArray, $fields)
  {
		$rows = $this->find($whereArray, $fields, null, null);
		return $rows;
  }

  function setPrimaryKey ($key)
  {
    $this->primaryKey = $key;
  }

  function insertData($values)
  {
    $modelName = $this->name;
    return $this->save(array($modelName => $values));
  }
  
  function getIncReqList()
  {
    return array(1 => "include", 2 => "include_once", 3 => "require", 4 => "require_once");
  }

  function getInsertPlace()
  {
    return array(1 => "before var.", 2 => "after var.");
  }
}
?>
